package com.ibm.crl.sb.thread.czbk;

public class MultiThreadShareData {

	public MultiThreadShareData() {
		ShareData1 share = new ShareData1();
		new Thread().start();
		new Thread().start();

	}

	public static void main(String[] args) {
		new MultiThreadShareData();
	}
}

class ShareData1 implements Runnable {
	private int j = 0;
	private int count = 100;

	public synchronized void increament() {
		j++;
	}

	public synchronized void decreament() {
		j--;
	}

	@Override
	public void run() {
		while (true) {
			count--;
		}
	}
}
